from Base import Base
from selenium.webdriver.common.by import By
import time
class Page(Base):

    #输入账号
    username_loc={By.ID,'use'}
    #输入密码
    password_loc={By.ID,'pwd'}
    #点击登录
    login_loc=(By.ID,'log')

    def login(self):
        self.open_url('http://localhost:8080/')
        time.sleep(2)
        self.send_keys(self.username_loc,'13228720890')
        time.sleep(2)
        self.send_keys(self.password_loc,'12345678')
        time.sleep(2)
        self.click(self.login_loc)
        time.sleep(2)

